package com.skwyb.form.bean.req;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Range;

@Data
@EqualsAndHashCode(callSuper = true)
public class PageReq extends BaseRequest {
    @Range(min = 0, max = 100000, message = "page is illegal")
    Integer page = 1;

    @Range(max = 10000, message = "row is illegal")
    Integer rows = 100;

    @Range(max = 999999999, message = "startIndex is illegal")
    Integer startIndex = 0;
}
